home *** CD-ROM | disk | FTP | other *** search
/ AM/FM: Amiga Musicians' Freeware Magazine 13 / AM-FM 13.adf / utilities / RXTRACKER.run / rexx / playst.rexx next >
Encoding:
OS/2 REXX Batch file  |  1991-02-07  |  376 b   |  21 lines

  1. /* command to make RxTracker load and play a song */
  2.  
  3. parse arg songname
  4.  
  5. if (songname = '') then do
  6.    say "Usage: playst <songname>"
  7.    exit
  8.   end
  9.  
  10. if (~exists(songname)) then do
  11.    say "I can not find <<"songname">>"
  12.    exit
  13.   end
  14.  
  15. /* make sure RxTracker is up and running */
  16. if (~show(P, RXTRACKER)) then
  17.   startrxt
  18.  
  19. address RXTRACKER LOAD songname
  20. address RXTRACKER PLAY
  21.